import { Profile } from '@/store/reducer/user';
import request from '@/utils/request';
export function getUserInfo() {
  return request({
    url: '/v1_0/user',
  });
}
export function getUserProfile() {
  return request({
    url: '/v1_0/user/profile',
  });
}
export function deitPhotoFiles(data: FormData) {
  return request({
    url: '/v1_0/user/photo',
    method: 'PATCH',
    data,
  });
}
export function deitProfile(data: Partial<Profile>) {
  return request({
    url: '/v1_0/user/profile',
    method: 'PATCH',
    data,
  });
}
